package tgc.edu.yzy.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import tgc.edu.yzy.custom.CommonRepository;
import tgc.edu.yzy.entity.Test02;

@Repository
public interface Test02Repository extends CommonRepository<Test02, Integer>{
	
	public List<Test02> findByParentId(Integer id);
	@Modifying
	@Query(value="select * from test02 WHERE name like ?1", nativeQuery=true)
	public List<Test02> findLike(String q);

}
